package pub.cleangao.memm.transport.message;


import lombok.Data;
import pub.cleangao.memm.util.UnionKey;

import java.io.Serializable;

@Data
public class RpcRequest implements Serializable {

    private String requestId;
    private String interfaceName;
    private String methodName;
    private Object[] parameters;
    private Class<?>[] paramTypes;
    private String version;
    private String group;
    private long timeout = 0L;

    public String getRpcServiceName() {
        return UnionKey.getRpcServiceName(getInterfaceName(), getGroup(), getVersion());
    }

}
